package com.woniuxy.feign;

import com.woniuxy.util.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author 饶志
 * @version 1.0
 * @since 2025-07-17  10:32
 */
@FeignClient(name = "campus-user", contextId = "userStatsFeignClient", path = "/user/stats")
public interface UserStatsFeignClient {

    @PostMapping("/incrementPostCount/{userId}")
    ResponseData<Void> incrementPostCount(@PathVariable("userId") Long userId);

    @PostMapping("/decrementPostCount/{userId}")
    ResponseData<Void> decrementPostCount(@PathVariable("userId") Long userId);
}
